<?php

/**
 * apartment actions.
 *
 * @package    estate
 * @subpackage apartment
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
 */
class apartmentActions extends sfActions
{
  public function executeIndex(sfWebRequest $request)
  {
    $this->apartman_list = ApartmanPeer::doSelect(new Criteria());
  }

  public function executeShow(sfWebRequest $request)
  {
    $this->apartman = ApartmanPeer::retrieveByPk($request->getParameter('id'));
    $this->forward404Unless($this->apartman);
  }

}